package com.ldp.designpatterns.study.prototype.concretePrototype;

import com.ldp.designpatterns.study.prototype.prototype.Shape;

/**
 * @ClassName Rectangle
 * @Description TODO:原型模式——2、具体原型（Concrete Prototype）：实现克隆方法，从自身创建一个副本。
 * @Author lindipei
 * @Date 2023/10/17 15:35
 */
public class Rectangle extends Shape {
    public Rectangle(){
        type = "Rectangle";
    }

    @Override
    protected void draw() {
        System.out.println("Inside Rectangle::draw() method.");
    }
}
